/*
 * @Description: 关联文档。入参第一个统一为baseInfo的store
 */
import globalMethods from '@/plugins/methods';
import { createDocumentList } from '../helper';

export default (useBaseInfo) => {
    const docList = useBaseInfo.relationDocs.atts;
    const title = globalMethods.i18n('common.toolbar.insert.mydocument.label');
    if (docList.length) {
        return new PrintFragment(title, createDocumentList(docList, title));
    }
    return false;
};
